<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterTableShopAddDyCouponVerifySwitch extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('shops', function (Blueprint $table) {
            $table->unsignedTinyInteger('dyCouponVerifySwitch')
                  ->default(1)
                  ->after('ylkStoreId')
                  ->comment('抖音券码核销开关 0 - 关闭  1 - 开启');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('shops', function (Blueprint $table) {
            $table->dropColumn('dyCouponVerifySwitch');
        });
    }
}
